-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat(bundler): consider extensions defined in main.wxs. #14570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
Package Changes Through a88fbe5There are 1 changes which include tauri-bundler with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
Legend-Master
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Do you mind also adding a change file?
https://github.com/tauri-apps/tauri/blob/dev/.changes/README.md
And just a question, this is for custom templates right (bundle > windows > wix > template)?
| let fragment_content = fs::read_to_string(&fragment_path)?; | ||
| let fragment_handlebars = Handlebars::new(); | ||
| let fragment = fragment_handlebars.render_template(&fragment_content, &data)?; | ||
| let input_paths = std::iter::once(output_path.join(PathBuf::from("main.wxs"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nitpick, we can reuse main_wxs_path here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! Nitpick is applied.
a16e9d4 to
2dbe066
Compare
dcf7564 to
2855f13
Compare
chore(bundler): avoid clone and use reference. Co-authored-by: Tony <[email protected]>
chore(bundler): reclassify changes. Co-authored-by: Tony <[email protected]>
Description
This PR extends extension support for the Tauri installer by considering not only
fragment_pathsfor extension inclusion, but also the mainmain.wxsconfiguration file itself.Previously, the integration of extensions was limited to fragments, making it harder to manage installer customization in a centralized location.
What’s changed
fragment_pathsand the mainmain.wxsfile are now recognized and included during the installer build process.Why
This change allows developers to manage all necessary installer extensions directly in fragments as well as in template, enabling more flexible and maintainable Windows installer configurations and reducing the need to split extension logic unnecessarily.